<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTacheProductionTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateTacheProductionLabel_nom}" for="nom" />
                    <h:inputText id="nom" value="#{tacheProductionController.selected.nom}" title="#{bundle.CreateTacheProductionTitle_nom}" />
                    <h:outputLabel value="#{bundle.CreateTacheProductionLabel_dateDebut}" for="dateDebut" />
                    <h:inputText id="dateDebut" value="#{tacheProductionController.selected.dateDebut}" title="#{bundle.CreateTacheProductionTitle_dateDebut}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateTacheProductionLabel_dateFin}" for="dateFin" />
                    <h:inputText id="dateFin" value="#{tacheProductionController.selected.dateFin}" title="#{bundle.CreateTacheProductionTitle_dateFin}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateTacheProductionLabel_identifTacheprod}" for="identifTacheprod" />
                    <h:inputText id="identifTacheprod" value="#{tacheProductionController.selected.identifTacheprod}" title="#{bundle.CreateTacheProductionTitle_identifTacheprod}" required="true" requiredMessage="#{bundle.CreateTacheProductionRequiredMessage_identifTacheprod}"/>
                    <h:outputLabel value="#{bundle.CreateTacheProductionLabel_identif}" for="identif" />
                    <h:selectOneMenu id="identif" value="#{tacheProductionController.selected.identif}" title="#{bundle.CreateTacheProductionTitle_identif}" >
                        <f:selectItems value="#{tacheController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{tacheProductionController.create}" value="#{bundle.CreateTacheProductionSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{tacheProductionController.prepareList}" value="#{bundle.CreateTacheProductionShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateTacheProductionIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
